package com.woniuxy.controller;

import com.woniuxy.entity.ReceptionCharge;
import com.woniuxy.service.ReceptionChargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author g2l
 * @create 2022-07-09 9:10
 */
@RestController
public class ReceptionChargeController {

    @Autowired
    private ReceptionChargeService service;

    @GetMapping("/getRegCharge/{doctorName}")
    public ReceptionCharge getRegCharge(@PathVariable String doctorName){
        System.out.println(doctorName);
        return service.getChargeByDoctorName(doctorName);
    }
}
